package com.yanze.controller;

import com.yanze.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("/getUser")
    public Object getUser(){
        User u = new User();
        u.setName("白泽丶");
        u.setPassword("123456");
        u.setAge(18);
        u.setBirthday(new Date());
        u.setDesc("这是一个机智的少年aaaaa");
        return u;
    }
}
